package com.hhx.androidrxmvp.dagger.module;

import android.app.Activity;
import android.support.v4.app.Fragment;

import com.hhx.androidrxmvp.base.BaseFragment;
import com.hhx.androidrxmvp.base.BaseMvpFragment;
import com.hhx.androidrxmvp.base.mvp.BasePresenter;
import com.hhx.androidrxmvp.dagger.FragmentScope;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2019/3/18.
 */
@Module
public class FragmentModule {

    private Fragment mFragment;

    public FragmentModule(Fragment fragment) {
        this.mFragment = fragment;
    }

    @Provides
    @FragmentScope
    Activity provideActivity() {
        return mFragment.getActivity();
    }

}
